//
// Created by ziya on 2021/1/17.
//

#ifndef STACK_ENGINE_LOCALVARIABLETABLE_H
#define STACK_ENGINE_LOCALVARIABLETABLE_H

#include "slot.h"

#include <array>

class LocalVariableTable {

private:
    array<Slot *, 5> _container;

public:

public:
    array<Slot *, 5>* container();

public:
    void storeInt(jint index, Slot* slot);
    void storeInt(jint index, jint val);

    void storeDouble(jint index, double val);
    void storeDouble(jint index, Slot* slot);

    jint loadInt(jint index);
    jdouble loadDouble(jint index);

    Slot* getIntSlot(jint index);

};


#endif //STACK_ENGINE_LOCALVARIABLETABLE_H
